#include "widget.h"
#include "ui_widget.h"

#include <fstream>
#include <QComboBox>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

        std::ifstream file("d:/work.txt");

        std ::string str;
        while (std::getline(file, str))
        {


            ui->comboBox->addItem(QString::fromStdString(str));
        }

        file.close();


}

Widget::~Widget()
{
    delete ui;
}

